<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<nav class="main-menu hidden-xs hidden-sm hidden-md" th:fragment="navBar(resCategoryModel)">
    <ul id="menu-menu-1" class="nav-list u-plain-list">
        <li class="menu-item">
            <a href="/">首页</a>
        </li>
        <th:block th:each="resCat:${resCategoryModel}">
            <li class="menu-item" th:classappend="${#lists.isEmpty(resCat.children)?'':'menu-item-has-children'}">
                <a th:href="${resCat.url}"
                   th:text="${resCat.categotyName}"></a>
                <ul class="sub-menu" th:style="${#lists.isEmpty(resCat.children)}?'display:none':''">
                    <th:block th:each="resCateChildren:${resCat.children}">
                        <li class="menu-item menu-item-type-post_type menu-item-object-page">
                            <a th:href="${resCateChildren.url}"
                               th:text="${resCateChildren.categotyName}"></a></li>
                    </th:block>
                </ul>
            </li>
        </th:block>
        <li class="menu-item">
            <a href="/web/hotmsg.html">热点资讯</a>
        </li>
        <li class="menu-item">
            <a href="/web/me.html">关于我们</a>
        </li>
        <li class="menu-item">
            <a href="/web/tags.html">标签云</a>
        </li>
    </ul>
</nav>
</html>
